﻿#ifndef COMPLEXSETFORM_H
#define COMPLEXSETFORM_H

#include <QWidget>
#include "CommonSetForm.h"
#include "algoform.h"
#include "coalform.h"
#include "DevUpForm.h"
#include "cameraform.h"
#include "AiPtuStruct.h"


namespace Ui
{
    class ComplexSetForm;
}

class ComplexSetForm : public QWidget
{
    Q_OBJECT

public:
    explicit ComplexSetForm(QString devType, QWidget* parent = nullptr );
    ~ComplexSetForm();

private slots:
    void initForm();

    void on_device_manage_clicked();

    void on_algo_manage_clicked();

    void on_coalspeed_manage_clicked();

    void on_snap_manage_clicked();

    void on_upload_manage_clicked();

    void onGetdevicetype(QJsonObject obj);

    void setsomehidden();

private:
    Ui::ComplexSetForm* ui;
    QString m_devType;

    CommonSetForm* commonsetform ;
    AlgoForm* algoform;
    CoalForm* coalform;
    DevUpForm* upform;
    CameraForm*  cameraform;


protected:
    virtual void closeEvent(QCloseEvent* event);
};

#endif // COMPLEXSETFORM_H
